// 客户信息
import request from "@/utils/https/requests";
// 发货方列表
export function receiverList(data: any) {
  return request({
    url: "/customer/receiverList",
    method: "post",
    data,
  });
}
// 收货方列表
export function deliverList(data: any) {
  return request({
    url: "/customer/deliverList",
    method: "post",
    data,
  });
}

// 添加
export function postAddCustomer(data: any) {
  return request({
    url: "/customer/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModCustomer(data: any) {
  return request({
    url: `/customer/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function customerDetail(id: string) {
  return request({
    url: `/customer/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteCustomer(id: string) {
  return request({
    url: `/customer/postDelete/${id}`,
    method: "post",
  });
}
